import {BaseUrl} from "../constant/constant";
import {ApiFetch} from "../api/apiHandler";

class QuestionModel {
    constructor() {
        this.url = BaseUrl
    }

    total(params) {
        let end = this.url + 'getquestionnaireusercount'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    result(params) {
        let end = this.url + 'getquestionnairestatistics'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    comments(params) {
        let end = this.url + 'getquestionnairedetail'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }
}

export default QuestionModel